package com.example.demo.exception;

/**
 * @author hankChan
 *         2018/1/5 0005.
 */
public class TestException extends RuntimeException {

    private static final long serialVersionUID = -6412333961475292060L;

    private String requestId;
    private String code;
    private String msg;

    public TestException(String requestId, String msg) {
        this.msg = "request_id=" + requestId + ",DaoException:$$$" + msg + "$$$";
    }

    public TestException(String requestId, String code, String msg) {
        this.code = code;
        this.msg = "request_id=" + requestId + ",DaoException:$$$" + msg + "$$$";
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
